/**
*	流程模块：扩展js
*	开发者：雨中磐石
*	地址：www.rockoa.com
*	日期：2023-07-20
*/



js.flowbill_list = function(){
	
	this.initbodys = function(){
		
		this.setcolumns('status', {
			renderer:function(v,d){
				var s = v+'';
				if(d.status==0)s='待'+d.nowcheckname+'处理';
				return s;
			}
		});
		
		if(this.iscompany){
			this.optobj.addbtn('单据信息','danjiinfo', this);
		}
		
	}

	this.xiang = function(id,d){
		xcy.openxiang({
			num:d.fmodenum,
			mid:d.mid,
			name:d.fmodename,
			cnum:this.cnum,
			funitid:d.fmodeid,
			xiangwidth:this.xiangwidth,
			ismodal:true,
			tableid:this.table.getid()
		});
	}
	
	this.danjiinfo = function(){
		var d = this.table.changedata;
		if(!d){
			js.msg('success','请先选中行');
			return;
		}
		this.xiang(0, {
			fmodenum:this.num,
			mid:d.id,
			fmodename:'单据信息',
			fmodeid:this.funitid
		});
	}
}